[dotnet] Update dependency Moq to 4.20.72 #14967
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.13.0->4.20.72Release Notes
moq/moq (Moq)
v4.20.72Full Changelog
🔨 Other:
🔀 Merged:
v4.20.71Full Changelog
🐛 Fixed bugs:
🔨 Other:
null#1391🔀 Merged:
v4.20.70Full Changelog
🔨 Other:
🔀 Merged:
v4.20.69v4.20.2🐛 Fixed bugs
v4.20.1✨ Implemented enhancements
v4.20.0✨ Implemented enhancements
Mock<T>.RaiseAsyncmethod for raising "async" events, i.e. events that use aFunc<..., Task>orFunc<..., ValueTask>delegate. (@stakx, #1313)setup.Verifiable(Times times, [string failMessage])method to specify the expected number of calls upfront.mock.Verify[All]can then be used to check whether the setup was called that many times. The upper bound (maximum allowed number of calls) will be checked right away, i.e. whenever a setup gets called. (@stakx, #1319)🔨 Other
ThrowsAsyncfor non-genericValueTaskby @johnthcall in https://github.com/moq/moq/pull/1235mock.Protected().Verify<T>()method overload by @stakx in https://github.com/moq/moq/pull/1325Fixed
v4.18.4Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
IndexOutOfRangeException#1252🔨 Other:
MissingMethodExceptionwhen using new C# language features (inparameters,init-only setters, etc.) with generic methods, or with members in generic types #1148🔀 Merged:
v4.18.3Fixed
SetupAllPropertiescrashes when invoked on aMock<T>subclass (@mo-russo, #1278)v4.18.2Changed
Castle.Core(DynamicProxy) from version 5.0.0 to 5.1.0 (@stakx, #1275)System.Threading.Tasks.Extensionsfornetstandard2.1andnet6.0(@tibel, #1274)Fixed
.Raises()with redeclared event (@howcheng, #1175)MissingMethodExceptionwhen mocking interface with sealed default implementation (@pjquirk, #1209)TypeLoadExceptionon mock when a record has a base record on .NET 6 (@tgrieger-sf, #1273)v4.18.1Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
🔨 Other:
🔀 Merged:
StubbedPropertySetup.IsMatchless picky #1260 (@stakx).Resultsetups to returnnull#1259 (@stakx)v4.18.0Full Changelog
🐛 Fixed bugs:
CallBaseandDefaultValue.Mockconfigured #1249🔨 Other:
🔀 Merged:
MethodExpectation.CreateFrom(Invocation)#1251 (@stakx)v4.17.2Full Changelog
🐛 Fixed bugs:
🔨 Other:
successcondition parameter inWhen. #1237🔀 Merged:
SetupPropertywork with recursive expressions again #1241 (@stakx)v4.17.1Full Changelog
🐛 Fixed bugs:
Mock.Of#1066🔨 Other:
🔀 Merged:
SetupAllProperties#1234 (@stakx)v4.16.1Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
🔨 Other:
.Resultproperty #1132🔀 Merged:
Returns(InvocationFunc)doesn't throwTargetInvocationException#1141 (@stakx).Resultsetups #1133 (@stakx)AmbiguousMatchExceptionwhen interface has indexer besides property #1131 (@mujdatdinc).CallBasefor default interface implementations #1130 (@stakx)v4.16.0Full Changelog
✨ Implemented enhancements:
Verify#1117Await(...)operator #1007.Resultof (value) tasks #1126 (@stakx)🐛 Fixed bugs:
🔨 Other:
🔀 Merged:
IAwaitableFactory) #1125 (@stakx).Verifiable()once again #1121 (@stakx)v4.15.2Full Changelog
🔨 Other:
🔀 Merged:
v4.14.7Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
🔨 Other:
mocked.Equals(mocked)returns false by default if mocked class overridesEquals#802v4.14.6Full Changelog
🐛 Fixed bugs:
🔨 Other:
Microsoft.Build.Tasks.Git.LocateRepositorytask failed unexpectedly." #1060🔀 Merged:
Mock.Of#1061 (@stakx)v4.14.5Fixed
VerifySetfails withNullReferenceExceptionfor write-only indexers (@Epicycle23, #1036)v4.14.4Full Changelog
🐛 Fixed bugs:
🔨 Other:
AttributesToAvoidReplicating? #1026🔀 Merged:
AttributesToAvoidReplicating#1029 (@stakx)netcoreapp3.1#1028 (@stakx)v4.14.3Full Changelog
🐛 Fixed bugs:
🔀 Merged:
DefaultValue.Mockas matched #1027 (@stakx)v4.14.2Full Changelog
🔨 Other:
🔀 Merged:
DefaultValue.Mockshould not add redundant setups for already-matched invocations #1025 (@stakx)v4.14.1Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
🔨 Other:
🔀 Merged:
v4.14.0Full Changelog
✨ Implemented enhancements:
CallbackandReturns: Allow callback parameters to have typeobjectwhere a type matcher was used #953Mock.Setups, part 4: Mock, fluent setup & inner mock discovery #989 (@stakx)🐛 Fixed bugs:
🔨 Other:
🔀 Merged:
Mock.Setups, part 6: ReplaceOriginalSetupwith simplerOriginalExpression#999 (@stakx)UpgradePropertyAccessorMethods#998 (@stakx)conditionalSetup.Verifiable()an error #997 (@stakx)Mock.Setups, part 5: Simplify fluent setup & inner mock discovery #995 (@stakx)Func<IInvocation,>callback withReturns#992 (@stakx)Mock.Setups, part 3: Individual setup verification #987 (@stakx)SetupAllProperties' setups #986 (@stakx)Mock.Setups, part 2: Match status of setups & invocations #985 (@stakx)Mock.Setups, part 1: Basics #984 (@stakx)Verify(),VerifyAll()#983 (@stakx)Mock.Of<Class>shouldn't delete invocations made fromClass' ctor #980 (@stakx)FluentMockVisitor#978 (@stakx)Times.Validate(count)&Times.ToString()#975 (@stakx)Capture.Inworking again inVerifyexpressions #974 (@stakx)v4.13.1Full Changelog
🐛 Fixed bugs:
mock.SetupPropertythrowsNullReferenceExceptionwhen called for partially overridden property #951SetupAllPropertiesdoes not recognize property as read-write if only setter is overridden #886🔨 Other:
🔀 Merged:
SetupPropertyfor partially overridden properties #952 (@stakx)SetupAllPropertiesstubs all accessors of partially overridden properties #950 (@stakx)InnerMockSetup(i.e. internal setups for cached return values) match generic args exactly instead of by assignment compatibility. #949 (@stakx)paramsarrays in setup/verification expressions using structural equality #948 (@stakx)mock.As<>round-tripping #945 (@stakx)InterfaceProxy#944 (@stakx)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.